package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.pojo.vo.CheckRepeatVO;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.saas.domain.entity.RecheckingRuleEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author zhouwq
 * @date 2021/12/23 11:20
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class ReceiveRecheckDTO extends BaseDTO {

    private FormDataRepeatDTO formDataRepeatDTO;
    /**
     * 是否有查重权限
     */
    private Boolean permissionFlag;

    private CheckRepeatVO checkRepeatVO;

    private String queryIndex;

    private String queryIndexType;

    private String subIndexType;
    /**
     * 不同业务的名称attr
     */
    private String nameAttr;

    /**
     * 查重字段的attr
     */
    private String attr;

    private String value;

    private String repeatConfig;
    /**
     * 重复规则实体
     */
    private RecheckingRuleEntity ruleEntity;
    /**
     * 当前业务的所有模板Id
     */
    private List<Long> allFormIdList;
    /**
     * 当前业务类型
     */
    private Integer businessType;
    /**
     * 当前formId
     */
    private Long formId;

    public ReceiveRecheckDTO(FormDataRepeatDTO formDataRepeatDTO, Boolean permissionFlag, CheckRepeatVO checkRepeatVO, String attr, String value, String repeatConfig) {
        this.formDataRepeatDTO = formDataRepeatDTO;
        this.permissionFlag = permissionFlag;
        this.checkRepeatVO = checkRepeatVO;
        this.attr = attr;
        this.value = value;
        this.repeatConfig = repeatConfig;
    }
}
